package qf.sail.vo;

import qf.sail.contents.CodeMsg;

import java.util.HashMap;
import java.util.Map;

public class ResultVO{
    //返回状态
    private int status = CodeMsg.SUCCESS.getCode();
    //返回信息
    private String msg = CodeMsg.SUCCESS.getMsg();
    //返回数据
    private Map<String,Object> data = new HashMap<>();

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void addData(String key,Object value){
        data.put(key,value);
    }

    @Override
    public String toString() {
        return "ResultVO{" +
                "status=" + status +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
